import { Role } from 'src/modules/rbac/entities/role.entity'

/**
 * JWT 负载
 */
export interface Payload {
  id: number
  username: string
  email: string
  nickname: string
  avatar: string
  phone: string
  isSuperAdmin: boolean
  roles: Role[]
}

export interface JwtPayload extends Payload {
  exp: number
  iat: number
}

export interface LoginPayload {
  access_token: string
  refresh_token: string
  user: Payload
}
